class MyAudio
  is_playing=no
  timer=null
  slider_left=0
  slider_width=0
  $this=null
  constructor: (options)->
    settings=
      autoplay: false
      playindex: 0
      playlist: []
      last_playing_time: 0
      loaded: null
      $switch: $("#switch")
      $prev: $("#prev")
      $next: $("#next")
      $progress_handle: $("#progress_handle")
      $completed_bar: $("#completed_bar")
      $slider_bar: $("#slider_bar")
      $current_time:$("#current_time")
      $duration:$("#duration")
      $file_name:$("#file_name")
      $playlist_item:$(".playlist_item")

    $.extend(settings, options);
    @is_autoplay = options.is_autoplay

  play: ->
  pause: ->
  prev: ->
  next: ->
  updateProgress: ->
  setProgress: ->